﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.FontInstance, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.UIObject, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.FontInstance, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.UIObject, "Function"))

	_DB:AddCodeHelp("GetTextColor", [=[Returns the font instance's default text color]=], [=[GetTextColor()]=])
	_DB:AddCodeHelp("GetFont", [=[Returns the font instance's basic font properties]=], [=[GetFont()]=])
	_DB:AddCodeHelp("SetTextColor", [=[Sets the font instance's default text color]=], [=[SetTextColor(textR, textG, textB, textAlpha)]=])
	_DB:AddCodeHelp("SetJustifyV", [=[Sets the font instance's horizontal text alignment style]=], [=[SetJustifyV("justify")]=])
	_DB:AddCodeHelp("GetJustifyH", [=[Returns the font instance's horizontal text alignment style]=], [=[GetJustifyH()]=])
	_DB:AddCodeHelp("GetSpacing", [=[Returns the font instance's amount of spacing between lines]=], [=[GetSpacing()]=])
	_DB:AddCodeHelp("GetShadowColor", [=[Returns the color of the font's text shadow]=], [=[GetShadowColor()]=])
	_DB:AddCodeHelp("SetFont", [=[Sets the font instance's basic font properties]=], [=[SetFont("filename", fontHeight, "flags")]=])
	_DB:AddCodeHelp("SetFontObject", [=[Sets the `Font` object from which the font instance's properties are inherited]=], [=[SetFontObject("name")]=])
	_DB:AddCodeHelp("SetSpacing", [=[Sets the font instance's amount of spacing between lines]=], [=[SetSpacing(spacing)]=])
	_DB:AddCodeHelp("GetShadowOffset", [=[Returns the offset of the font instance's text shadow from its text]=], [=[GetShadowOffset()]=])
	_DB:AddCodeHelp("SetJustifyH", [=[Sets the font instance's horizontal text alignment style]=], [=[SetJustifyH("justify")]=])
	_DB:AddCodeHelp("GetFontObject", [=[Returns the `Font` object from which the font instance's properties are inherited]=], [=[GetFontObject()]=])
	_DB:AddCodeHelp("SetShadowColor", [=[Sets the color of the font's text shadow]=], [=[SetShadowColor(shadowR, shadowG, shadowB, shadowAlpha)]=])
	_DB:AddCodeHelp("SetShadowOffset", [=[Sets the offset of the font instance's text shadow from its text]=], [=[SetShadowOffset(xOffset, yOffset)]=])
	_DB:AddCodeHelp("GetJustifyV", [=[Returns the font instance's vertical text alignment style]=], [=[GetJustifyV()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.FontInstance, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.UIObject, "Property"))

	_DB:AddCodeHelp("TextColor", [[the font instance's default text color]], IGAS:GetPropertyType("Color"))
	_DB:AddCodeHelp("Font", [[the font's defined table, contains font path, height and flags' settings]], IGAS:GetPropertyType("FontTable"))
	_DB:AddCodeHelp("JustifyH", [[the font instance's horizontal text alignment style]], IGAS:GetPropertyType("JustifyH"))
	_DB:AddCodeHelp("Spacing", [[the font instance's amount of spacing between lines]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("ShadowColor", [[the color of the font's text shadow]], IGAS:GetPropertyType("Color"))
	_DB:AddCodeHelp("ShadowOffset", [[the offset of the font instance's text shadow from its text]], IGAS:GetPropertyType("Offset"))
	_DB:AddCodeHelp("JustifyV", [[the font instance's vertical text alignment style]], IGAS:GetPropertyType("JustifyV"))
	_DB:AddCodeHelp("FontObject", [[the `Font` object]], IGAS:GetPropertyType("Font"))
end
